home *** CD-ROM | disk | FTP | other *** search
- /* */
-
- parse arg fn
-
- if ~(open('test',fn,'r'))
- then do
- say "can't open" fn '.'
- exit(10)
- end
-
- pos = -200
- do while ~eof('test')
- pos = pos + 200
- buff = readch('test',200)
- len = length(buff)
- loc = 1
- do while loc < len
-
- cha1 = pos('1f'x,buff,loc)
- if cha1 ~= 0
- then do
- say "'1f'x found at "cha1+pos
- loc = loc+cha1
- end
-
- char = pos('Copy',buff,loc)
- if char ~= 0
- then do
- char = char
- if (char + loc + 63) > len
- then do
- char = 63 - (len - (char + loc))
- pos = pos + 200
- buff = readch('test',200)
- len = length(buff)
- loc = 1
- cha1 = 1
- end
- else char = char + 64
- say substr(buff,char,8)
- end
-
- if cha1 = 0 then leave
- end
- end
-